import { request } from '~/api/request'

export const queryLawDocs = (data: any): any => request('post', '/api/internal/v1/queryModule/query/case/docs', data)

export const itemList = (data: any): any => request('post', '/api/internal/v1/queryModule/query/item/list', data)

export const itemForExcel = (data: any): any =>
  request('post', '/api/internal/v1/queryModule/query/item/exportItem', data)

export const queryVoucherCaseList = (data: any): any =>
  request('post', '/api/internal/v1/queryModule/query/voucher/caseList', data)

export const obtainVoidCertificate = (data: any): any =>
  request('get', '/api/internal/v1/voucher/query/discardList', data)

export const voucherRecord = (data: any): any =>
  request('post', '/api/internal/v1/queryModule/query/voucher/record', data)

export const queryTrajectory = (data: any): any =>
  request('post', '/api/internal/v1/queryModule/query/queryTrajectory', data)

export const getCbrByCaseNo = (data: any): any => request('post', '/api/v1/item/getCbrByCaseNo', data)

export const queryAttachmentList = (data: any): any =>
  request('post', '/api/internal/v1/queryModule/query/itemPic/caseList', data)

export const viewAttachmentList = (data: any): any => request('post', '/api/internal/v1/caseAttachment/list', data)

export const UpdatingFiles = (data: any): any => request('post', '/api/internal/v1/caseAttachment/uploadAttach', data)

export const AttachmentDeletion = (data: any): any =>
  request('post', '/api/internal/v1/caseAttachment/deleteAttach', data)

export const getAttachHttpUrl = (data: any): any =>
  request('get', '/api/internal/v1/caseAttachment/getAttachHttpUrl', data)
